home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / wf200_c.arc / WF.007 < prev    next >
Text File  |  1990-08-30  |  6KB  |  160 lines

  1. .f3                              - # -              Chapter 7 - Search & Replace
  2. .rm70
  3. .mt5
  4. .mb5
  5. .pl66
  6. .tc
  7. .tc 7. FINDING AND REPLACING TEXT .........................#
  8. 7. FINDING AND REPLACING TEXT
  9.  
  10. .Tc    Search .............................................#
  11. Search
  12.  
  13. First, you must tell Word Fugue that you wish to search for text. You can do
  14. this in any of 3 ways.
  15.  
  16.    (i)   Press function key F5
  17. or (ii)  Activate the pull down menu. Press S for Search,
  18.          followed by F for Find
  19. or (iii) Press CTRL Q F (this is a WordStar command)
  20.  
  21.    A pop up window will appear on the screen with the words Search
  22.    for
  23.  
  24.    Type in the letters you wish to find and press return. Word
  25.    Fugue will prompt you for options for the command Options:
  26.  
  27.    The options available are:
  28.  
  29.    U    Upper case - treat the string to search for and the file
  30.         as if they are all in upper case. Thus and will match
  31.         and  AND  anD  AnD  aNd  . If you do not enter this
  32.         option then the case of the letters will be important.
  33.         This means that and will only match and
  34.  
  35.    B    Backward - This tells Word Fugue to search backwards from the
  36.         cursor position. If you do not specify this, then Word Fugue
  37.         will search forward.
  38.  
  39.    W    Word only - This tells Word Fugue to search for whole words
  40.         only, and not to match bits of words
  41.         Thus and will match and only.
  42.         If you do not specify this, and will match with
  43.         band  sand andalusium and so on.
  44.  
  45.    L    Locally - this means that Wordfugue will search the marked
  46.         block as long as it is visible.
  47.  
  48.    n    Where n is an integer. Search for the nth occurrence of the
  49.         string.
  50.  
  51.    G    Global search. For finds this means always start from the top
  52.         of the file.
  53.  
  54.    Press enter when you have entered the options, and Word Fugue will
  55.    search for the letters.
  56.  
  57.    The cursor stops on the first occurrence of them. Press CTRL L to
  58.    find the next occurrence (unless you used the G option). Keep
  59.    pressing CTRL L once for each occurrence.
  60.  
  61.    When Word Fugue stops finding the text, you will be informed:
  62.        Not found - Press ESC
  63.  
  64. .cp5
  65. .Tc    Replacing text .....................................#
  66. Replacing text
  67.  
  68. First, you must tell Word Fugue that you wish to replace text. You can do
  69. this in any of 3 ways.
  70.  
  71.    (i)   Press function key F6
  72. or (ii)  Activate the pull down menu. Press S for Search,
  73.          followed by R for Replace
  74. or (iii) Press CTRL Q A (this is a WordStar command)
  75.  
  76.    A pop up window will appear on the screen with the word Search for
  77.    Type in the letters and press return. Word Fugue will prompt with
  78.    Replace. Type the letters you wish the to use for replacement.
  79.  
  80.    Word Fugue will then prompt you with Options
  81.  
  82.    The options available are the same as for FIND above, with the
  83.    following additions:
  84.  
  85.    G    Global search - go to the top of the file, and search for all
  86.         occurrences, and replace them. You do not need to press CTRL L
  87.         for the next occurrence. If you also specified the B option,
  88.         then Word Fugue will go to the end of the file and search
  89.         backwards.
  90.  
  91.    N    Do not ask. The default when replacing is to ask you whether
  92.         you wish to replace this occurrence.
  93.  
  94.         If you specify N option, then Word Fugue will not ask you, but
  95.         will replace  every occurrence.
  96.  
  97.         If the N option is not specified, a prompt will occur each
  98.         time the search pattern is found. This prompt will provide the
  99.         following options:
  100.  
  101.         Y - replace this text and continue searching.
  102.         N - do Not replace, but continue searching.
  103.         A - replace this text and replace All others without prompting.
  104.         Q - do not replace, and Quit searching.
  105.  
  106.    Press enter when you have typed in any options. (You do not
  107.    need to type in options). The cursor jumps to the first
  108.    occurrence of and replaces it with the new letters.
  109.  
  110.  
  111.    TIP - when doing a Global replace with the N option, Word Fugue
  112.          still shows you each occurrence as it replaces it. This takes
  113.          time to update the screen each time. If you wish to speed it
  114.          up, and do not want to see each occurrence as it is changed,
  115.          press Page Up or Page Down as Word Fugue is working. The
  116.          screen will stop updating until Word Fugue has finished the
  117.          search and replace operation.
  118.  
  119. .cp5
  120. .Tc    Find And Apply Macro ...............................#
  121. Find And Apply Macro
  122.  
  123. First, you must tell Word Fugue that you wish to replace text. You can do
  124. this in either of 2 ways.
  125.  
  126.    (i)  Activate the pull down menu. Press S for Search,
  127.         followed by U for Use Macro
  128. or (ii) Press CTRL Q M
  129.  
  130.    A pop up window will appear on the screen with the word Search for
  131.    Type in the letters and press return. Word Fugue will prompt with
  132.    a menu of available macros. Select the macro you want to use with
  133.    the cursor keys and press Enter. Remember that the cursor is
  134.    positioned at the end of the search string.
  135.  
  136.    Word Fugue will then prompt you with Options
  137.  
  138.    The options available are the same as for REPLACE above.
  139.  
  140.    Press enter when you have typed in any options. (You do not
  141.    need to type in options). The cursor jumps to the first
  142.    occurrence of and applies the macro.
  143.  
  144.    You can also nest this command within other macros, leading to
  145.    arbritrarily complex commands.
  146.  
  147. .tc    Find Matching >}]) or end ..........................#
  148. Find Matching >}]) or end
  149.  
  150. This command makes life easier for programmers by allowing you to see
  151. if your brackets are matched. It also allows you to match begin end
  152. pairs, but be aware that some language constructs have an end but no
  153. explicit begin. An example of this is Pascal's Case statement.
  154.  
  155. Place the cursor on ({[< and press the command Ctrl K [. The cursor
  156. will be positioned on the matching >]}) or you will receive an error
  157. message if none can be found. Also, if you place the cursor on the B
  158. of begin and Word Fugue will position the cursor on the matching end
  159. for you.
  160.